package com.springboot.auth.authorization.service.impl;//package team.shuguoyiyou.authcode.authcode.service.impl;//package team.shuguoyiyou.authcode.authcode.service.impl;

import com.springboot.auth.authorization.model.vo.Authcode;
import com.springboot.auth.authorization.provider.AuthcodeProvider;
import com.springboot.auth.authorization.service.ISlidingCodeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@Slf4j
@Service
public class SlidingCodeService implements ISlidingCodeService {

    @Autowired
    private AuthcodeProvider authcodeProvider;

    @Override
    public String sliding(Authcode authcode) {
        return authcodeProvider.getAuthcode(authcode);
    }
}
